<link rel="stylesheet" type="text/css" href="res/media/css/space/blog-common.css">
<<style>
.table th, .table td {
	padding: 4px;
}
</style>
<ul class="breadcrumb">
	<li><i class="icon-home"></i> <a href="index.html">个人空间</a> <i
		class="icon-angle-right"></i></li>
	<li><a href="#">博客分类管理</a></li>
</ul>
<div class="blog-list module">
	<div>
		<div class="pull-left">
			父类别:
			<select style="width:100px;height:34px;margin-right:20px;" ng-model="blog_category.pid" ng-options="cate.id as cate.name for cate in blog_categorys">
				<option value=''>--请选择--</option>
			</select>
			类别名称: <input type="text" class="span4 m-wrap" ng-model="blog_category.name" >
		</div>
		<div class="pull-right">
			<button class="btn blue" ng-click="add();">添加</button>
		</div>
	</div>

	<div class="portlet box ">

		<table class="table table-bordered table-hover">
			<thead>
				<tr>
					<th>#</th>
					<th>类别名称</th>
					<th>父级类别</th>
					<th>状态</th>
				</tr>
			</thead>

			<tbody>
				<tr ng-repeat="blog_cate in blog_categorys">
					<td ng-bind="blog_cate.id"></td>
					<td ng-bind="blog_cate.name"></td>
					<td ng-bind="blog_cate.pname"></td>
					<td>
						<span class="label label-success">启用</span>
					</td>
					<td><a href="javascript:;" ng-click="del($index, blog_cate);" class="btn mini yellow"><i class="icon-delete"></i> 删除</a></td>
				</tr>


			</tbody>
		</table>
	</div>
</div>